feat: add selectable status indicator to toolbar v2#848
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
67f3bd1 to
bedf313
Compare
6f798fa to
5885839
Compare
bedf313 to
07cd540
Compare
5885839 to
005eede
Compare
07cd540 to
e2af205
Compare
005eede to
6875fe2
Compare
40179f0 to
6426195
Compare
packages/react/src/modules/guide/components/Toolbar/V2/useInspectGuideClientStore.ts
Show resolved
Hide resolved
…tAllByTypeReturnStatus logic
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
packages/react/src/modules/guide/components/Toolbar/V2/useInspectGuideClientStore.ts
Show resolved
Hide resolved
|
|
||
| const byKey = <T extends { key: string }>(items: T[]) => { | ||
| return items.reduce((acc, item) => ({ ...acc, [item.key]: item }), {}); | ||
| }; |
There was a problem hiding this comment.
Duplicated byKey utility already exists in helpers
Low Severity
The byKey helper duplicates the identical function already exported from packages/client/src/clients/guide/helpers.ts. It isn't currently re-exported from the package index, but adding it to the index.ts exports (alongside the newly added checkStateIfThrottled) would avoid the duplication.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #848 +/- ##
==========================================
+ Coverage 67.41% 67.90% +0.49%
==========================================
Files 204 204
Lines 8561 8767 +206
Branches 1118 1183 +65
==========================================
+ Hits 5771 5953 +182
- Misses 2766 2790 +24
Partials 24 24
|



Description
Another follow up to #846 and #847, this PR adds a "selectable" status to guide's annotation, and surfaced in
GuideRow. This should be the final status indicator, which combined with other statuses should allow the toolbar to answer the question "why am i seeing or not seeing guide X"?The "selectable" status is a bit more involved than other statuses because: